﻿@model xConnected.Core.Model.PersonalProfile

@using (Html.BeginForm("Save", "ProfileCRUD", FormMethod.Post, new { id = "ProfileForm" }))
{
@Html.Hidden("Id")
<label class="Title">
    <span>Title</span><br />
    @Html.TextBox("Title")<br />
</label>
<label class="Body">
    <span>Description</span><br />
    @Html.TextArea("Description")
</label>
<label class="Title">
    <span>Website</span><br />
    @Html.TextBox("Website")
</label>
<label class="Title">
    <span>Skype</span><br />
    @Html.TextBox("Skype")
</label>
<label class="Title">
    <span>Facebook</span><br />
    @Html.TextBox("Facebook")
</label>
<label class="Title">
    <span>Twitter</span><br />
    @Html.TextBox("Twitter")
</label>
<label class="Title">
    <span>Linkedin</span><br />
    @Html.TextBox("Linkedin")
</label>
<label class="Title">
    <span>HourRate</span><br />
    @Html.TextBox("HourRate")
</label>
<label class="Title">
    <span>DailyRate</span><br />
    @Html.TextBox("DailyRate")
</label>
<label class="Title">
    <span>AnnualRate</span><br />
    @Html.TextBox("AnnualRate")
</label>
<label class="Title">
    <span>CommentRate</span><br />
    @Html.TextBox("CommentRate")
</label>
<label class="Title">
    <span>EmploymentType</span><br />
    @Html.TextBox("EmploymentType")
</label>
<label class="Body">
    <span>Abilities</span><br />
    @Html.TextArea("Abilities")
</label>
<label class="Body">
    <span>References</span><br />
    @Html.TextArea("References")
</label>
<label class="Body">
    <span>Availability</span><br />
    @Html.TextArea("Availability")
</label>
<label class="Body">
    <span>Other</span><br />
    @Html.TextArea("Other")
</label>
}
<script type="text/javascript">
    $(function () {
        $("#ProfileForm").validate({
            rules: {
                Title: { required: true },
                Abilities: { required: true },
                References: { required: true },
                Availability: { required: true }
            }
        });
    });
</script>


}
   